home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 1.0 / CIncludes / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-18  |  1.6 KB  |  71 lines  |  [TEXT/MPS ]

  1. /*
  2.     locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988, 1990, 1993
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. /* 
  13.  *   Declarations
  14.  */
  15.  
  16. #ifndef NULL 
  17. #define NULL 0
  18. #endif
  19.  
  20. #define LC_ALL        1 /* entire locale */
  21. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  22. #define LC_CTYPE      3 /* character handling and multibyte functions */
  23. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  24. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  25. #define LC_TIME       6 /* strftime function */
  26.  
  27. #ifdef powerc
  28. #pragma options align=power
  29. #endif
  30. struct lconv {
  31.     char *decimal_point;       /* "." */
  32.     char *thousands_sep;       /* "" */
  33.     char *grouping;            /* "" */
  34.     char *int_curr_symbol;     /* "" */
  35.     char *currency_symbol;     /* "" */
  36.     char *mon_decimal_point;   /* "" */
  37.     char *mon_thousands_sep;   /* "" */
  38.     char *mon_grouping;        /* "" */
  39.     char *positive_sign;       /* "" */
  40.     char *negative_sign;       /* "" */
  41.     char frac_digits;          /* CHAR_MAX */
  42.     char int_frac_digits;      /* CHAR_MAX */
  43.     char p_cs_precedes;        /* CHAR_MAX */
  44.     char p_sep_by_space;       /* CHAR_MAX */
  45.     char n_cs_precedes;        /* CHAR_MAX */
  46.     char n_sep_by_space;       /* CHAR_MAX */
  47.     char p_sign_posn;          /* CHAR_MAX */
  48.     char n_sign_posn;          /* CHAR_MAX */
  49. };
  50. #ifdef powerc
  51. #pragma options align=reset
  52. #endif
  53.  
  54.  
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58.  
  59. /*
  60.  *  functions
  61.  */
  62.  
  63. char *setlocale (int category, const char *locale);
  64. struct lconv *localeconv (void);
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.  
  70. #endif /*__LOCALE__*/
  71.